<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "set_user_up".
 *
 * @property int $id
 * @property float|null $vip1
 * @property float|null $vip2
 * @property float|null $vip3
 * @property float|null $vip4
 * @property float|null $vip1_1
 * @property float|null $vip1_2
 * @property float|null $vip_1_balance
 * @property float|null $vip_1_score
 * @property float|null $vip_2_balance
 * @property float|null $repeat_price
 * @property int|null $repeat_num
 * @property float|null $team_ratio
 */
class SetUserUp extends \yii\db\ActiveRecord
{
    use SetUserUpCommon;

    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'set_user_up';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['vip1', 'vip2', 'vip3', 'vip4', 'vip1_1', 'vip1_2', 'vip_1_balance', 'vip_1_score', 'vip_2_balance', 'repeat_price', 'team_ratio'], 'number'],
            [['repeat_num'], 'integer'],

            [['cash_1', 'cash_vip2', 'cash_vip3'], 'safe'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'vip1' => 'Vip 1',
            'vip2' => 'Vip 2',
            'vip3' => 'Vip 3',
            'vip4' => 'Vip 4',
            'vip1_1' => 'Vip 1  1',
            'vip1_2' => 'Vip 1  2',
            'vip_1_balance' => 'Vip  1 Balance',
            'vip_1_score' => 'Vip  1 Score',
            'vip_2_balance' => 'Vip  2 Balance',
            'repeat_price' => 'Repeat Price',
            'repeat_num' => 'Repeat Num',
            'team_ratio' => 'Team Ratio',
        ];
    }
}
